<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'head.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <script language="javascript">
	            function add()
	            {
	            pop("admin/adduser.jsp","业主注册",400,253);
	            }
	            function update(no)
            {
            pop("xgxx.jsp?id="+no,"修改信息",400,253);
            }
	            </script>
	            <script language="javascript" src="js/popup.js"></script>
  <body>
  <%

String tname = "";
String uid = "";
if(session.getAttribute("yz")!=null){
	HashMap map = (HashMap)session.getAttribute("yz");
	 tname=map.get("truename").toString();
	 uid=map.get("id").toString();
}

%>
    <TABLE border=0 cellSpacing=0 cellPadding=0 width=1004 align=center>
  <TBODY>
  <TR>
    <TD  vAlign=top  align=middle>
    <img src="1_files/bannerdi_2.gif"  width="1000" height="150">

    </TD></TR>
  <TR>
    <TD height=34 vAlign=top background=1_files/cddi.gif align=middle>
      <TABLE border=0 cellSpacing=0 cellPadding=0 width="96%">
        <TBODY>
        <TR>
          <TD height=8 vAlign=top align=middle></TD></TR>
        <TR>
          <TD height=15 vAlign=top align=middle>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width="96%">
              <TBODY>
              <TR vAlign=top align=middle>
                <TD><A href="welcome.jsp" class="STYLE1">首页</A></TD>
                <TD><A href="xqinfo.jsp" class="STYLE1">小区概况</A></TD>
                <TD><A href="list.jsp?t=1" class="STYLE1">小区公告</A></TD>
                <TD><A href="list.jsp?t=4" class="STYLE1">业主报修</A></TD>
                <%if(tname.equals("")){ %>
                <TD><A href="javascript:add()" class="STYLE1">业主注册</A></TD>
                <%} %>
                <%if(!tname.equals("")){ %>
                <TD><A href="myinfo.jsp" class="STYLE1">小区缴费</A></TD>
                <TD><A href="javascript:update(<%=uid %>)" class="STYLE1">信息修改</A></TD>
                <TD><A href="/wuyegl/wuyegl?ac=exit" class="STYLE1">退出</A></TD>
                <%} %>
                <TD><A href="/wuyegl/admin/login.jsp" class="STYLE1">管理登陆</A></TD>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
              </TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD height=9 vAlign=bottom align=right><IMG src="1_files/wz.gif" 
            width=150 height=5></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD bgColor=#d0f2fe height=1></TD></TR>
  <TR>
    <TD height=41 vAlign=center background=1_files/cddi2.gif >
    
    <%if(!tname.equals("")){%>
    &nbsp;&nbsp;&nbsp;&nbsp;登陆成功！&nbsp;&nbsp;&nbsp;业主:
    <%=tname %>
    &nbsp;&nbsp;&nbsp;您好！欢迎您！
   <% } %>
    
    </TD>
  </TR>
  <TR>
    <TD height=0 vAlign=bottom align=right>&nbsp;</TD>
  </TR></TBODY></TABLE>
  </body>
</html>
